/**
 * 开发使用
 */
var gulp = require('gulp'),
    browser = require('./gulp/browser'),
    gulpLoadPlugins = require('gulp-load-plugins'),
    plugins = gulpLoadPlugins(),
    _task = require("./gulp/task"),
    _sprite = require("./gulp/sprite/");
    baseConfig = require('./gulp/config');

    plugins.webpack = require("webpack-stream");



//开发编译
gulp.task(
    'develop',
    _task(gulp, plugins, baseConfig({
        webpack: require('./gulp/webpack/dev.conf.js'),
        dest:"./dev/", // 发布目录
        copyFiles:[]
    }))
);
//发布
gulp.task(
    'build',
    _task(gulp, plugins, baseConfig({
        webpack: require('./gulp/webpack/pro.conf.js'),
        dest:"./dist/", // 发布目录
        copyFiles:[],
        production: true,
        reversion:true, // reversion
    }))
);
//雪碧图合并工具
gulp.task(
    'spriteTool',
    _sprite(gulp, plugins, baseConfig())
);

